<?php
namespace Operationtest\Model;

class Transfert {
    public $id;
    public $depart;
    public $arrivee;
    public $matricule;
    public $jour;
    public $entree;
    public $sortie;
    public $pause;
    public $repas;
    public $commentaire;
    
    public function exchangeArray($data) {
        $this->id = (isset($data['id'])) ? $data['id'] : null;
        $this->depart = (isset($data['depart'])) ? $data['depart'] : null;
        $this->arrivee = (isset($data['arrivee'])) ? $data['arrivee'] : null;
        $this->matricule = (isset($data['matricule'])) ? $data['matricule'] : null;
        $this->jour = (isset($data['jour'])) ? $data['jour'] : null;
        $this->entree = (isset($data['entree'])) ? $data['entree'] : null;
        $this->sortie = (isset($data['sortie'])) ? $data['sortie'] : null;
        $this->pause = (isset($data['pause'])) ? $data['pause'] : null;
        $this->repas = (isset($data['repas'])) ? $data['repas'] : null;
        $this->commentaire = (isset($data['commentaire'])) ? $data['commentaire'] : null;
    }
}
